//
//  KChart.h
//  iPad
//
//  Created by 英傑 翁 on 12/7/1.
//  Copyright (c) 2012年 翁英傑. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"


@interface KChart : UIView<CPTBarPlotDataSource, CPTPieChartDataSource, CPTBarPlotDelegate,CPTPlotSpaceDelegate>{
    CPTGraphHostingView *hostView;
    CPTXYGraph *graph;
    
    NSMutableArray *history_data_serial; //歷史資料序列    
    
    BOOL piePlotIsRotating;
    
    NSMutableArray *dataForChart, *dataForPlot;   
    
       
    CPTXYPlotSpace *plotSpace  ; 

    CPTScatterPlot *dataSourceLinePlot1;    
    
    
    
    //graph
    double y_high_low;
    double y_low;
    
    NSNumber *chart_identify_index; //第幾個走勢圖
    
    NSMutableArray *calculate_method_array;      
    
    
    
}

-(void)drawgraph:(NSMutableArray *)serialdata;
-(void)set_cchart_frame:(CGRect)frame;

@end
